package com.service;

import com.bean.Student;

import java.util.List;

public interface StudentService {
    public List<Student> getStudents();
    public List<Student> getStudentsByPage(int page,int limit);
    public int getStudentsLength();

    public int addStudent(Student student);
    public int delStudentById(int id);
    public Student selectStudentById(int id);
    public int updateStudentById(Student student);
    public List<Student> selectStudentByName(String name,int page, int limit);
    public int selectStudentByNameLength(String studentName);

    public List<Student> selectStudentBycId(int cid);

    public int selectStudentBycIdLength(int cid);
}
